<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="./js/jquery.min.js"></script>
	<script src="./js/layer/layer.js"></script>
</head>
<body>

<script>

layer.open({
	type:0,
	content:'自定义内容',
	title:['自定义标题','color:red;'],
	time:0,
	btn:['一个按钮','第二个','第三个'],
	btnAlign:'c',
	icon:6,//0黄色的叹号,1为绿色的对号,2为红色的叉号,3为黄色的问号,4黑色的锁,5为一个哭脸,6为一个笑脸.最大数值为6.就结束了.
	yes:function(index, layero){
		console.log(index, layero);
		return false;
	},
	btn2:function(index){
		console.log(index);
		return false;
	},
	btn3:function(index){
		console.log(index);
		return false;
	},
	cancel:function(){
		console.log('关闭');
		return false;
	}
});
</script>
	
</body>
</html>